﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Twinkle.Dialogs
{
    public partial class UploadingView : Form
    {
        public UploadingView()
        {
            InitializeComponent();
        }

        bool closable = false;

        public void CloseDialog()
        {
            closable = true;
            this.Close();
        }

        private void UploadingView_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!closable)
            {
                e.Cancel = true;
            }
        }
    }
}
